package com.jz.beijianbao.subclass.controller;


import com.jz.beijianbao.subclass.entity.Subclass;
import com.jz.beijianbao.subclass.mapper.SubclassMapper;
import com.jz.beijianbao.subclass.service.ISubclassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2021-12-28
 */
@RestController
@CrossOrigin
public class SubclassController {

    @Autowired
    private ISubclassService iSubclassService;

    @Autowired
    private SubclassMapper subclassMapper;

    @GetMapping("subClass/queryPage")
    public Object queryPage(){
        List<Subclass> subclasses = subclassMapper.selectList(null);

        return subclasses;
    }

}
